Optimal. Leaf size=47 \[ \frac {a \tanh ^{-1}(\cosh (c+d x))}{2 d}+\frac {b \cosh (c+d x)}{d}-\frac {a \coth (c+d x) \text {csch}(c+d x)}{2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 47, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.190, Rules used = {3294, 1171,
396, 212} \begin {gather*} \frac {a \tanh ^{-1}(\cosh (c+d x))}{2 d}-\frac {a \coth (c+d x) \text {csch}(c+d x)}{2 d}+\frac {b \cosh (c+d x)}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 396
Rule 1171
Rule 3294
Rubi steps
\begin {align*} \int \text {csch}^3(c+d x) \left (a+b \sinh ^4(c+d x)\right ) \, dx &=\frac {\text {Subst}\left (\int \frac {a+b-2 b x^2+b x^4}{\left (1-x^2\right )^2} \, dx,x,\cosh (c+d x)\right )}{d}\\ &=-\frac {a \coth (c+d x) \text {csch}(c+d x)}{2 d}-\frac {\text {Subst}\left (\int \frac {-a-2 b+2 b x^2}{1-x^2} \, dx,x,\cosh (c+d x)\right )}{2 d}\\ &=\frac {b \cosh (c+d x)}{d}-\frac {a \coth (c+d x) \text {csch}(c+d x)}{2 d}+\frac {a \text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\cosh (c+d x)\right )}{2 d}\\ &=\frac {a \tanh ^{-1}(\cosh (c+d x))}{2 d}+\frac {b \cosh (c+d x)}{d}-\frac {a \coth (c+d x) \text {csch}(c+d x)}{2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 82, normalized size = 1.74 \begin {gather*} \frac {b \cosh (c) \cosh (d x)}{d}-\frac {a \text {csch}^2\left (\frac {1}{2} (c+d x)\right )}{8 d}-\frac {a \log \left (\tanh \left (\frac {1}{2} (c+d x)\right )\right )}{2 d}-\frac {a \text {sech}^2\left (\frac {1}{2} (c+d x)\right )}{8 d}+\frac {b \sinh (c) \sinh (d x)}{d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(94\) vs.
\(2(43)=86\).
time = 1.25, size = 95, normalized size = 2.02
method | result | size |
risch | \(\frac {b \,{\mathrm e}^{d x +c}}{2 d}+\frac {{\mathrm e}^{-d x -c} b}{2 d}-\frac {a \,{\mathrm e}^{d x +c} \left (1+{\mathrm e}^{2 d x +2 c}\right )}{d \left ({\mathrm e}^{2 d x +2 c}-1\right )^{2}}+\frac {a \ln \left ({\mathrm e}^{d x +c}+1\right )}{2 d}-\frac {a \ln \left ({\mathrm e}^{d x +c}-1\right )}{2 d}\) | \(95\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 115 vs.
\(2 (43) = 86\).
time = 0.27, size = 115, normalized size = 2.45 \begin {gather*} \frac {1}{2} \, b {\left (\frac {e^{\left (d x + c\right )}}{d} + \frac {e^{\left (-d x - c\right )}}{d}\right )} + \frac {1}{2} \, a {\left (\frac {\log \left (e^{\left (-d x - c\right )} + 1\right )}{d} - \frac {\log \left (e^{\left (-d x - c\right )} - 1\right )}{d} + \frac {2 \, {\left (e^{\left (-d x - c\right )} + e^{\left (-3 \, d x - 3 \, c\right )}\right )}}{d {\left (2 \, e^{\left (-2 \, d x - 2 \, c\right )} - e^{\left (-4 \, d x - 4 \, c\right )} - 1\right )}}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 690 vs.
\(2 (43) = 86\).
time = 0.41, size = 690, normalized size = 14.68 \begin {gather*} \frac {b \cosh \left (d x + c\right )^{6} + 6 \, b \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{5} + b \sinh \left (d x + c\right )^{6} - {\left (2 \, a + b\right )} \cosh \left (d x + c\right )^{4} + {\left (15 \, b \cosh \left (d x + c\right )^{2} - 2 \, a - b\right )} \sinh \left (d x + c\right )^{4} + 4 \, {\left (5 \, b \cosh \left (d x + c\right )^{3} - {\left (2 \, a + b\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{3} - {\left (2 \, a + b\right )} \cosh \left (d x + c\right )^{2} + {\left (15 \, b \cosh \left (d x + c\right )^{4} - 6 \, {\left (2 \, a + b\right )} \cosh \left (d x + c\right )^{2} - 2 \, a - b\right )} \sinh \left (d x + c\right )^{2} + {\left (a \cosh \left (d x + c\right )^{5} + 5 \, a \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{4} + a \sinh \left (d x + c\right )^{5} - 2 \, a \cosh \left (d x + c\right )^{3} + 2 \, {\left (5 \, a \cosh \left (d x + c\right )^{2} - a\right )} \sinh \left (d x + c\right )^{3} + 2 \, {\left (5 \, a \cosh \left (d x + c\right )^{3} - 3 \, a \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{2} + a \cosh \left (d x + c\right ) + {\left (5 \, a \cosh \left (d x + c\right )^{4} - 6 \, a \cosh \left (d x + c\right )^{2} + a\right )} \sinh \left (d x + c\right )\right )} \log \left (\cosh \left (d x + c\right ) + \sinh \left (d x + c\right ) + 1\right ) - {\left (a \cosh \left (d x + c\right )^{5} + 5 \, a \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{4} + a \sinh \left (d x + c\right )^{5} - 2 \, a \cosh \left (d x + c\right )^{3} + 2 \, {\left (5 \, a \cosh \left (d x + c\right )^{2} - a\right )} \sinh \left (d x + c\right )^{3} + 2 \, {\left (5 \, a \cosh \left (d x + c\right )^{3} - 3 \, a \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{2} + a \cosh \left (d x + c\right ) + {\left (5 \, a \cosh \left (d x + c\right )^{4} - 6 \, a \cosh \left (d x + c\right )^{2} + a\right )} \sinh \left (d x + c\right )\right )} \log \left (\cosh \left (d x + c\right ) + \sinh \left (d x + c\right ) - 1\right ) + 2 \, {\left (3 \, b \cosh \left (d x + c\right )^{5} - 2 \, {\left (2 \, a + b\right )} \cosh \left (d x + c\right )^{3} - {\left (2 \, a + b\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right ) + b}{2 \, {\left (d \cosh \left (d x + c\right )^{5} + 5 \, d \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{4} + d \sinh \left (d x + c\right )^{5} - 2 \, d \cosh \left (d x + c\right )^{3} + 2 \, {\left (5 \, d \cosh \left (d x + c\right )^{2} - d\right )} \sinh \left (d x + c\right )^{3} + 2 \, {\left (5 \, d \cosh \left (d x + c\right )^{3} - 3 \, d \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{2} + d \cosh \left (d x + c\right ) + {\left (5 \, d \cosh \left (d x + c\right )^{4} - 6 \, d \cosh \left (d x + c\right )^{2} + d\right )} \sinh \left (d x + c\right )\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 107 vs.
\(2 (43) = 86\).
time = 0.44, size = 107, normalized size = 2.28 \begin {gather*} \frac {2 \, b {\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )} + a \log \left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )} + 2\right ) - a \log \left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )} - 2\right ) - \frac {4 \, a {\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )}}{{\left (e^{\left (d x + c\right )} + e^{\left (-d x - c\right )}\right )}^{2} - 4}}{4 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.72, size = 126, normalized size = 2.68 \begin {gather*} \frac {b\,{\mathrm {e}}^{-c-d\,x}}{2\,d}+\frac {b\,{\mathrm {e}}^{c+d\,x}}{2\,d}+\frac {\mathrm {atan}\left (\frac {a\,{\mathrm {e}}^{d\,x}\,{\mathrm {e}}^c\,\sqrt {-d^2}}{d\,\sqrt {a^2}}\right )\,\sqrt {a^2}}{\sqrt {-d^2}}-\frac {a\,{\mathrm {e}}^{c+d\,x}}{d\,\left ({\mathrm {e}}^{2\,c+2\,d\,x}-1\right )}-\frac {2\,a\,{\mathrm {e}}^{c+d\,x}}{d\,\left ({\mathrm {e}}^{4\,c+4\,d\,x}-2\,{\mathrm {e}}^{2\,c+2\,d\,x}+1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________